import Home from '../views/home.vue';
import Link from '../views/link.vue';
import Link1 from '../views/qd.vue';
import { createRouter,createWebHashHistory  } from 'vue-router';//和vue2 路由不同
const routerHistory = createWebHashHistory();

const router = createRouter({
    history: routerHistory,//history写法不同
    routes: [
        {
            path: '/',
            component: Home,
        },{
            path: '/link',
            component: Link,
        },{
            path: '/link1',
            component: Link1,
        },
    ],
});

export default router;